<?
header("Content-type: application/msexcel");
header("Content-Disposition: attachment; filename=projeto.xls");
?>
<script>
//alert(opener.document.getElementById("tabelaRel").innerHTML);
</script>
<div id="teste">
</div>
<script>
//document.getElementById("teste").innerHTML = "<table>" + opener.document.getElementById("tabelaRel").innerHTML + "</table>";
</script>
<? echo $this->render("grid.phtml"); ?>